Research: seven-component aggregation performance stack - #5
Draft
latifkasuli wants to merge 24 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This draft preserves an evidence-backed aggregation performance research stack and now integrates upstream
mainatf7b433052bceb623222f337556e7d7eca21c6ed1.It is a research handoff, not a merge-ready production patch. Replay selectors and the measurement seam remain so the retained campaigns are reproducible. The mechanisms should be split into smaller review units after the target architecture and acceptance budget are agreed.
Source and evidence boundary
b61a0ee64a9e5f41c368f937c56cdbb74fd3908bon the older84fbd3efreeze.256928f9127c812749e40b08b4cf9744185c6b61on that same freeze.a5477b369ee44ef7aea91b0799f7b920b349632fon integrated upstreame9cd16d.5b7dc20fd6dfef45661e382c0bf1d716fdd174f7merges upstreamf7b4330without rewriting any evidence-bound commit.Upstream
53631e8intentionally replaced the old per-query equality challenge with one power-weight batching challenge per PCS level. The integration retains that complete current protocol across the prover and all verifiers while preserving the research timing spans, direct-fold path and hardened L0 induction selector. Proof hashes, proof sizes, fixtures and performance receipts from before53631e8remain historical evidence for their named commits. They are not current-head claims. Wire version 2 identifies the fixture and artifact encoding, not protocol compatibility, so old fixtures and artifacts must be regenerated.Earlier seven-component result
On the older measured freeze:
After seven components, the N2 phase cluster was Bus 0.687050 s, PCS opening 0.527055 s, constraints 0.518037 s and Flock reduction 0.336672 s. This moves the previous PCS bottleneck; it does not prove that aggregation meets a production budget.
Two-kernel result on
e9cd16dTwo default-off, fail-closed experiments were measured on the earlier integrated stack:
LEANVM_CONSTRAINT_NODE_SKIP=1derives one Boolean constraints-sumcheck endpoint from the running claim, including the exactzeta == 1branch.FLOCK_PACKED_128_PARALLEL=1serializes the three live packed witnesses concurrently into disjoint, completely initialized outputs.The canonical N2 campaign used one AMD EPYC 9354 NUMA domain, CPUs 8 through 15, four pilots and 32 measured fresh processes in a repeated 2 by 2 Williams-square design.
All 36 proofs were byte-identical and passed inspection. The direct mechanism results were repeatedly favorable, but the stated -350 ms system-materiality gate failed. The system deltas are descriptive rather than a confirmatory production-acceptance result.
Current upstream integration
The
f7b4330merge resolved two marked WHIR conflicts and one compile-only batching-state conflict:lambda,power_weightsandglue_pendingsemantics govern the transcript.Validation on
5b7dc20The unsealed Apple M4 Pro integration run passed:
cargo testall.cargo test --release --workspace --all-features.cargo clippyall.cargo fmt --all -- --check.cargo docall.python-verifier/verifier.py.recursion_2to1variants withLEANVM_PCS_DIRECT_FOLD6=1, with logs confirming direct-fold6 selection on production-shaped openings.recursion_soundness_bindsadversarial suite with direct-fold6 forced.This establishes current-source compatibility and soundness regression coverage. It is not a replacement performance campaign.
Feedback requested
mainthe intended architecture for splitting and productionizing these changes?